package com.pcbly.web.components.utils.template.dwr.action;

import com.pcbly.web.bean.news.NewsBean;
import com.pcbly.web.components.utils.template.AbstractModel;

public class ModelCommonAction { 
	public void execute(Class<?> clz){
		AbstractModel model=new ModelAction(clz);
		model.setTableName(tableName);
		model.execute();
		
		model=new ModelActionXml(clz);
		model.setTableName(tableName);
		model.execute();
		
		
		model=new ModelActionApp(clz);
		model.setTableName(tableName);
		model.execute();
		
	}
	private String tableName;
	
	
	
	public String getTableName() {
		return tableName;
	}



	public void setTableName(String tableName) {
		this.tableName = tableName;
	}



	public static void main(String[] args) {
		ModelCommonAction model=new ModelCommonAction();
		model.setTableName("t_news");
		model.execute(NewsBean.class);
	}
}
